package com.goodving.guli.bt.profile.scale;

import android.os.Handler;
import android.os.Message;

import com.goodving.guli.view.C4220a;

/**
 * Created by john on 2015/11/25.
 */
public class C0638c {
    private static final int f3440a = 0;
    private final int f3441b;
    Handler f3442c;
    private final int f3443d;
    private final int f3444e;
    private final String f3445f;

    class C3816d extends Handler {
        final /* synthetic */ C0638c f19315a;

        C3816d(C0638c c0638c) {
            this.f19315a = c0638c;
        }

        public void handleMessage(Message message) {
            switch (message.what) {
                case C4220a.f20886i /*0*/:
                    this.f19315a.m7910a();
                case 1 /*1*/:
                    this.f19315a.m7912a(message.obj);
                case C4220a.f20888k /*2*/:
                    this.f19315a.m7911a(message.arg1);
                case C4220a.f20889l /*3*/:
                    this.f19315a.m7914b(message.obj);
                default:
            }
        }
    }

    public C0638c() {
        this.f3441b = 1;
        this.f3443d = 2;
        this.f3444e = 3;
        this.f3445f = "BleCallBack";
        this.f3442c = new C3816d(this);
    }

    public void m7910a() {
        GuliLog.tracePrintInfo("BleCallBack", "onStart");
    }

    public void m7911a(int i) {
        GuliLog.tracePrintInfo("BleCallBack", "onProgress:" + i);
    }

    public void m7912a(Object obj) {
        GuliLog.tracePrintInfo("BleCallBack", "onFinish:" + obj);
    }

    public void m7913b(int i) {
        Message obtainMessage = this.f3442c.obtainMessage(2);
        obtainMessage.arg1 = i;
        this.f3442c.sendMessage(obtainMessage);
    }

    public void m7914b(Object obj) {
        GuliLog.tracePrintInfo("BleCallBack", "onFailed:" + obj);
    }

    public void m7915c() {
        this.f3442c.sendMessage(this.f3442c.obtainMessage(0));
    }

    public void m7916c(Object obj) {
        Message obtainMessage = this.f3442c.obtainMessage(1);
        obtainMessage.obj = obj;
        this.f3442c.sendMessage(obtainMessage);
    }

    public int m7917d() {
        return 0;
    }

    public void m7918d(Object obj) {
        Message obtainMessage = this.f3442c.obtainMessage(3);
        obtainMessage.obj = obj;
        this.f3442c.sendMessage(obtainMessage);
    }

    public boolean m7919e(Object obj) {
        GuliLog.tracePrintInfo("BleCallBack", "onData:" + obj);
        return true;
    }
}

